<?php

namespace app\api\controller;

use app\BaseController;

class UploadPhone extends BaseController
{
    public function index()
    {
        //接收用户上传的图片
        $file = $this->request->file('file');
        //获取上传的图片的类型
        $this->success('成功', $file);
    }
}